<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    const p=new Promise((resolve,reject)=>{
        setTimeout(()=>{
            resolve('用户数据')
            // reject('出错了')
        },1000)
    })
    // const result=p.then(value=>{
    //     console.log(value)
    //     // return 'idsgfds'
    //     return new Promise((resolve, reject) => {
    //         resolve('ok')
    //     })
    // },reason => {
    //     console.log(reason)
    // })
    // console.log(result)

    p.then(value => {

    },reason => {

    }).then(value => {

    },reason => {

    })
</script>
</body>
</html>
